package com.test.p09decorator.example01;

public class WashHearCook extends FilterCook {

    public WashHearCook(Cook cook) {
        this.cook = cook;
    }

    @Override
    public void cookDinner() {
        System.out.println("先洗头");
        cook.cookDinner();
    }

}